#timer.py

from threading import Timer
import time

def hello():
	print("hello")
	global t
	t = Timer(1, hello)
	t.start()

t = Timer(1, hello)
t.start()

if input() == 'q':
	t.cancel()